# -*- coding: utf-8 -*-
from django.contrib.auth.models import AbstractUser, UserManager, User


class AuthUserManager(UserManager):

    def create_user(self, username, email=None, password=None, **extra_fields):
        super().create_user(username, email, password, **extra_fields)

    def create_superuser(self, username, email=None, password=None, **extra_fields):
        super().create_superuser(username, email, password, **extra_fields)

    pass


class AuthUser(User):
    objects = AuthUserManager()

    class Meta:
        db_table = 'auth_user'
        verbose_name = '用户'
        verbose_name_plural = verbose_name
